//
//  HeartVideoLayout.h
//  miaopai
//
//  Created by duyifang on 15/11/24.
//  Copyright © 2015年 Crow Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol HeartVideoLayoutDelegate <UICollectionViewDelegateFlowLayout>


//重写系统的协议方法，获取每个item的大小
-(CGSize)collectionview:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtItemIndexPath:(NSIndexPath *)indexPath;

@end


@interface HeartVideoLayout : UICollectionViewLayout

@property (nonatomic, assign) id <HeartVideoLayoutDelegate>delegate;

//保存布局信息
@property (nonatomic, retain) NSMutableArray *array;

//记录当前contentView的大小
@property (nonatomic, assign) CGFloat maxHeight;

@end
